package com.dingding.gmall.common.exception;

/**
 * @author liugongding
 * @description:
 * @date 2022/3/5 10:11 PM
 */
public class NoStockException extends RuntimeException{
    private static final long serialVersionUID = -4842510602163909675L;

    private Long skuId;

    public NoStockException(Long skuId) {
        super("商品skuId："+skuId+"；没有足够的库存");
    }

    public NoStockException(String msg) {
        super(msg);
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
